<?php
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', true);
date_default_timezone_set('Europe/London');

$rootDir = dirname(dirname(__FILE__));
set_include_path($rootDir . '/library' . PATH_SEPARATOR . get_include_path());

require 'Zend/View.php';
$data = array(
    array(
        'author' => 'Jace Ju',
        'title' => 'PHP Smarty Template Engine',
    ),
);
$view = new Zend_View();
$view->setBasePath(realpath('.'));
//$view->addScriptPath(realpath('./scripts'));
$view->setHelperPath(realpath('./scripts/helper'), 'My_View_Helper');
$view->assign('books', $data);
//echo $view->render('booklist.php');
echo $view->comment();
?>